package com.qf.service.impl;

import com.qf.dao.QfTeachRepository;
import com.qf.pojo.entity.QfTeach;
import com.qf.pojo.resp.BaseResp;
import com.qf.service.QfTeachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class QfTeachServiceImpl implements QfTeachService {
    @Autowired
    QfTeachRepository qfTeachRepository;
    /**
     * 查询所有课程老师
     * @return 响应对象
     */
    @Override
    public BaseResp findAll() {
        List<QfTeach> all = qfTeachRepository.findAll();
        return new BaseResp(1,"success",all,null);
    }
}
